package com.runda.partypolicy.app.repository.db.dao;


import java.util.List;

import androidx.room.Dao;
import io.reactivex.Flowable;


/**
 * author:  RD_CY
 * date:    2018/3/29
 * version: v1.0
 * description:
 */

@Dao
public interface AppRecordDao {

//    @Insert(onConflict = OnConflictStrategy.REPLACE)
//    void insertOrReplace(AppRecord... records);
//
//    @Update
//    void update(AppRecord... records);
//
//    @Delete
//    void delete(AppRecord... records);
//
//    @Query("select * from app_record")
//    Flowable<List<AppRecord>> getAll();
//
//    @Query("select * from app_record")
//    List<AppRecord> getAllList();
//
//    @Query("select * from app_record where user_id != 'not_signed'")
//    Flowable<List<AppRecord>> getAllExcludeNotSigned();
//
//    @Query("select * from app_record where user_id != 'not_signed'")
//    List<AppRecord> getAllListExcludeNotSigned();
//
//    @Query("select * from app_record where id = :id")
//    Flowable<List<AppRecord>> getById(String id);
//
//    @Query("select * from app_record where id = :id")
//    List<AppRecord> getByIdList(String id);
//
//    @Query("select * from app_record where sign_name = :signName")
//    Flowable<List<AppRecord>> getBySignName(String signName);
//
//    @Query("select * from app_record where sign_name = :signName")
//    List<AppRecord> getBySignNameList(String signName);
//
//    @Query("select * from app_record where user_id = :userId")
//    Flowable<List<AppRecord>> getByUserId(String userId);
//
//    @Query("select * from app_record where user_id = :userId")
//    List<AppRecord> getByUserIdList(String userId);
}
